import request from '../utils/request'

export const getTaskList = (data) => {
    return request({
        url: "/app/rest/query/tasks",
        method: 'post',
        data: data
    })
}

export const getVariables = (taskId) => {
    return request({
        url: `app/rest/task-forms/${taskId}/variables`,
        method: 'get'
    })
}

export const getFormDefine = (formKey)=>{
    return request({
        url: `/app/rest/models/${formKey}/modelKey/editor/json`,
        method: 'get'
    });
}
